<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-02-22
 * Time: 17:56
 */

namespace app\index\validate;


use think\Validate;

class Rretrieve extends Validate
{
    protected $rule = [
        'u_password'       => 'confirm:confirm_password',
        'confirm_password' => 'confirm:u_password',
        'u_email'          => 'email',
        'u_email_code'     => 'require',
    ];

    protected $message = [
        'u_password.confirm'        => '两次输入密码不一致',
        'confirm_password.confirm'  => '两次输入密码不一致',
        'u_email.email'             => '邮箱格式错误',
        'u_email_code.require'      => '请输入邮箱验证码',
    ];
}